package com.hs.li.service;

import com.hs.li.pojo.CarManagement;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 汽车管理 服务类
 * </p>
 *
 * @author lhj
 * @since 2022-06-13
 */
public interface ICarManagementService extends IService<CarManagement> {

    Integer searchLastCarNumber();

    List<CarManagement> searchCarManagementBycarrierNumber(Integer val);

    List<CarManagement> searchCarManagementByCarrierName(String carrierName);

    List<CarManagement> searchCarManagementByCondition(Integer currentPage, Integer pageSize, String condition,Integer typeId);

    boolean changeCarTypeByOrderId(String orderId);

    boolean changeCarTypeByCarplate(String carPlate);

    /**
     * 根据运输单号 车辆使用状态从 1已出车 修改 为 0在库
     * @param transportId
     * @return
     */
    boolean changeCarTypeByTransportId(String transportId);
}
